﻿using OilRigSumoWrestlers.Scenes;
using RaptorEngine;
using RaptorEngine.Components.Drawable;

namespace OilRigSumoWrestlers.Entities.MenuItems
{
    class SinglePlayerGameItem : MenuItem
    {
        public SinglePlayerGameItem(DrawableText selectedText, DrawableText deselectedText)
            : base(selectedText, deselectedText) { }

        public override void Execute()
        {
            GameEngine.Instance.Scene.HideCurrentScene();
            GameEngine.Instance.Scene.StopCurrentScene();
            GameEngine.Instance.Scene.PushScene(new SinglePlayerScene(false));
            GameEngine.Instance.Scene.StartCurrentScene();
            GameEngine.Instance.Scene.ShowCurrentScene();
        }
    }
}
